const Sequelize = require('sequelize');
module.exports = function(sequelize, Sequelize) {
    return sequelize.define('games',{
        gameName: {
            type: Sequelize.STRING(256),
            allowNull: false,
            comment: "游戏名"
        },
        state: {
            type: Sequelize.BOOLEAN(false), 
            allowNull: false,
            comment: "状态:启用(true)，禁用(false)"
        },
        imageAddress: {
            type: Sequelize.STRING(256),
            allowNull: false,
            comment: "游戏图标地址"
        }
    });

};